using log4net;
using log4net.Config;
using SilverSea.Video.Tools;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
public sealed class frmOption : Form
{
	private IContainer icontainer_0;
	private Button btnOK;
	private Button btnCancel;
	private Label label4;
	private NumericUpDown numCaptureImageCount;
	private Label label6;
	private NumericUpDown numCaptureNextImageTime;
	private Label label1;
	private TextBox txtImageFolder;
	private Button btnBrowse;
	private FolderBrowserDialog folderBrowserDialog_0;
	private Label label10;
	private NumericUpDown numRecognizeIdleTime;
	private Label label8;
	private NumericUpDown numMaxCharHeight;
	private Label label9;
	private GroupBox groupBox3;
	private NumericUpDown numGmaxRED;
	private NumericUpDown numGminRED;
	private Label label13;
	private NumericUpDown numBmaxRED;
	private NumericUpDown numBminRED;
	private Label label12;
	private NumericUpDown numRmaxRED;
	private NumericUpDown numRminRED;
	private Label label11;
	private Label label15;
	private Label label16;
	private Label label17;
	private Label label14;
	private Button btnGetRedLightImage;
	private PictureBox picRedLight;
	private Label lblRGB;
	private PictureBox picDoninantColor;
	private Button btnGetDominantColor;
	private PictureBox picEquivalentColor;
	private TabControl tabControl1;
	private TabPage tabPage1;
	private TabPage tabPage2;
	private Button btnRedLightRegionDefine;
	private Label label19;
	private GroupBox groupBox5;
	private Label label20;
	private NumericUpDown numMotionAlarmLevelPanoramaCamera;
	private Label label23;
	private GroupBox grbRedColor;
	private GroupBox groupBox2;
	private Label label5;
	private Label label3;
	private Label lblRecognizeTime;
	private TabPage tabPage3;
	private Button btnDeleteData;
	private GroupBox groupBox4;
	private DateTimePicker dtpStop;
	private DateTimePicker dtpStart;
	private Label label7;
	private Label label2;
	private Label label26;
	private NumericUpDown numRedLightAnalyzeInterval;
	private Label label25;
	private Label label28;
	private GroupBox groupBox8;
	private NumericUpDown numNumberEventDisplay;
	private NumericUpDown numMaxLane;
	private Label label33;
	private Label label32;
	private TabPage tabPage4;
	private TextBox txtProvinceName;
	private Label label34;
	private TextBox txtLaneLocation;
	private Label label35;
	private ComboBox cbxRedLightAnalyzeMode;
	private Label label50;
	private GroupBox grbBlackColor;
	private NumericUpDown numRminBLACK;
	private Label label44;
	private NumericUpDown numRmaxBLACK;
	private Label label45;
	private NumericUpDown numBminBLACK;
	private NumericUpDown numBmaxBLACK;
	private Label label46;
	private NumericUpDown numGminBLACK;
	private NumericUpDown numGmaxBLACK;
	private Label label47;
	private Label label48;
	private Label label49;
	private GroupBox groupBox1;
	private ComboBox cbxBackColor;
	private Label label51;
	private CheckBox chkDisplaySuccessfullResultOnly;
	private Label label52;
	private NumericUpDown numMinCharHeight;
	private Label label53;
	private Label lblRGBInfo;
	private Label label21;
	private Label label18;
	private NumericUpDown numLaneAnalyzeInterval2;
	private Label label31;
	private NumericUpDown numLaneAnalyzeInterval1;
	private Label label27;
	private Label label22;
	private NumericUpDown numDifferenceFromRedColor;
	private Label label24;
	private Label label29;
	private TabPage tabPageControl;
	private GroupBox groupBox6;
	private CheckBox chkEnableAUXControlRL;
	private CheckBox chkEnableAUXControlVH2;
	private CheckBox chkEnableAUXControlPN;
	private CheckBox chkEnabeAUXControlVH1;
	private Label label30;
	private NumericUpDown numLastTimeReceivedFrameLimit;
	private Label label54;
	private Label label55;
	private NumericUpDown numDelayTimeAfterRedLight;
	private Label label56;
	private Label label58;
	private NumericUpDown numGreenLightDelay;
	private Label label57;
	private TextBox txtViolationDescription;
	private Label label59;
	private TextBox txtDepartment;
	private Label label60;
	private Label label62;
	private NumericUpDown numPrintInterval;
	private Label label61;
	private GroupBox groupBox7;
	private DateTimePicker dtpTimeStopRedLight;
	private Label label64;
	private DateTimePicker dtpTimeStartRedLight;
	private Label label63;
	private ILog ilog_0 = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
	public frmOption()
	{
        //NumericUpDown arg_A14_0 = this.numCaptureImageCount;
        //int[] array = new int[4];
        //array[0] = 10;
        //arg_A14_0.Maximum = new decimal(array);
        //NumericUpDown arg_A30_0 = this.numCaptureImageCount;
        //int[] array2 = new int[4];
        //array2[0] = 1;
        //arg_A30_0.Minimum = new decimal(array2);
		this.InitializeComponent();
		BasicConfigurator.Configure();
		XmlConfigurator.Configure();
		System.Drawing.Color backColor = System.Drawing.Color.FromName(MainForm.SystemConfiguration_0.string_15);
		this.BackColor = backColor;
		foreach (TabPage tabPage in this.tabControl1.TabPages)
		{
			tabPage.BackColor = backColor;
		}
		string[] names = System.Enum.GetNames(typeof(System.Drawing.KnownColor));
		this.cbxBackColor.Items.AddRange(names);
	}
	protected override void Dispose(bool disposing)
	{
		if (disposing && this.icontainer_0 != null)
		{
			this.icontainer_0.Dispose();
		}
		base.Dispose(disposing);
	}
	private void InitializeComponent()
	{
        System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmOption));
        this.btnOK = new System.Windows.Forms.Button();
        this.btnCancel = new System.Windows.Forms.Button();
        this.label4 = new System.Windows.Forms.Label();
        this.numCaptureImageCount = new System.Windows.Forms.NumericUpDown();
        this.label6 = new System.Windows.Forms.Label();
        this.numCaptureNextImageTime = new System.Windows.Forms.NumericUpDown();
        this.label1 = new System.Windows.Forms.Label();
        this.txtImageFolder = new System.Windows.Forms.TextBox();
        this.btnBrowse = new System.Windows.Forms.Button();
        this.folderBrowserDialog_0 = new System.Windows.Forms.FolderBrowserDialog();
        this.label10 = new System.Windows.Forms.Label();
        this.numRecognizeIdleTime = new System.Windows.Forms.NumericUpDown();
        this.label8 = new System.Windows.Forms.Label();
        this.numMaxCharHeight = new System.Windows.Forms.NumericUpDown();
        this.label9 = new System.Windows.Forms.Label();
        this.groupBox3 = new System.Windows.Forms.GroupBox();
        this.label58 = new System.Windows.Forms.Label();
        this.numGreenLightDelay = new System.Windows.Forms.NumericUpDown();
        this.label57 = new System.Windows.Forms.Label();
        this.label22 = new System.Windows.Forms.Label();
        this.numDifferenceFromRedColor = new System.Windows.Forms.NumericUpDown();
        this.label24 = new System.Windows.Forms.Label();
        this.label26 = new System.Windows.Forms.Label();
        this.cbxRedLightAnalyzeMode = new System.Windows.Forms.ComboBox();
        this.numRedLightAnalyzeInterval = new System.Windows.Forms.NumericUpDown();
        this.label25 = new System.Windows.Forms.Label();
        this.label50 = new System.Windows.Forms.Label();
        this.groupBox2 = new System.Windows.Forms.GroupBox();
        this.label29 = new System.Windows.Forms.Label();
        this.lblRecognizeTime = new System.Windows.Forms.Label();
        this.btnGetRedLightImage = new System.Windows.Forms.Button();
        this.label5 = new System.Windows.Forms.Label();
        this.lblRGBInfo = new System.Windows.Forms.Label();
        this.btnGetDominantColor = new System.Windows.Forms.Button();
        this.label3 = new System.Windows.Forms.Label();
        this.picRedLight = new System.Windows.Forms.PictureBox();
        this.picDoninantColor = new System.Windows.Forms.PictureBox();
        this.lblRGB = new System.Windows.Forms.Label();
        this.picEquivalentColor = new System.Windows.Forms.PictureBox();
        this.grbBlackColor = new System.Windows.Forms.GroupBox();
        this.numRminBLACK = new System.Windows.Forms.NumericUpDown();
        this.label44 = new System.Windows.Forms.Label();
        this.numRmaxBLACK = new System.Windows.Forms.NumericUpDown();
        this.label45 = new System.Windows.Forms.Label();
        this.numBminBLACK = new System.Windows.Forms.NumericUpDown();
        this.numBmaxBLACK = new System.Windows.Forms.NumericUpDown();
        this.label46 = new System.Windows.Forms.Label();
        this.numGminBLACK = new System.Windows.Forms.NumericUpDown();
        this.numGmaxBLACK = new System.Windows.Forms.NumericUpDown();
        this.label47 = new System.Windows.Forms.Label();
        this.label48 = new System.Windows.Forms.Label();
        this.label49 = new System.Windows.Forms.Label();
        this.grbRedColor = new System.Windows.Forms.GroupBox();
        this.numRminRED = new System.Windows.Forms.NumericUpDown();
        this.label11 = new System.Windows.Forms.Label();
        this.numRmaxRED = new System.Windows.Forms.NumericUpDown();
        this.label12 = new System.Windows.Forms.Label();
        this.numBminRED = new System.Windows.Forms.NumericUpDown();
        this.numBmaxRED = new System.Windows.Forms.NumericUpDown();
        this.label13 = new System.Windows.Forms.Label();
        this.numGminRED = new System.Windows.Forms.NumericUpDown();
        this.numGmaxRED = new System.Windows.Forms.NumericUpDown();
        this.label17 = new System.Windows.Forms.Label();
        this.label16 = new System.Windows.Forms.Label();
        this.label15 = new System.Windows.Forms.Label();
        this.btnRedLightRegionDefine = new System.Windows.Forms.Button();
        this.label14 = new System.Windows.Forms.Label();
        this.tabControl1 = new System.Windows.Forms.TabControl();
        this.tabPage1 = new System.Windows.Forms.TabPage();
        this.groupBox5 = new System.Windows.Forms.GroupBox();
        this.label55 = new System.Windows.Forms.Label();
        this.numDelayTimeAfterRedLight = new System.Windows.Forms.NumericUpDown();
        this.label56 = new System.Windows.Forms.Label();
        this.label21 = new System.Windows.Forms.Label();
        this.label18 = new System.Windows.Forms.Label();
        this.numLaneAnalyzeInterval2 = new System.Windows.Forms.NumericUpDown();
        this.label31 = new System.Windows.Forms.Label();
        this.numLaneAnalyzeInterval1 = new System.Windows.Forms.NumericUpDown();
        this.label27 = new System.Windows.Forms.Label();
        this.label52 = new System.Windows.Forms.Label();
        this.numMinCharHeight = new System.Windows.Forms.NumericUpDown();
        this.label20 = new System.Windows.Forms.Label();
        this.label53 = new System.Windows.Forms.Label();
        this.numMotionAlarmLevelPanoramaCamera = new System.Windows.Forms.NumericUpDown();
        this.label23 = new System.Windows.Forms.Label();
        this.label19 = new System.Windows.Forms.Label();
        this.tabPage2 = new System.Windows.Forms.TabPage();
        this.tabPage3 = new System.Windows.Forms.TabPage();
        this.groupBox7 = new System.Windows.Forms.GroupBox();
        this.dtpTimeStopRedLight = new System.Windows.Forms.DateTimePicker();
        this.label64 = new System.Windows.Forms.Label();
        this.dtpTimeStartRedLight = new System.Windows.Forms.DateTimePicker();
        this.label63 = new System.Windows.Forms.Label();
        this.groupBox8 = new System.Windows.Forms.GroupBox();
        this.label62 = new System.Windows.Forms.Label();
        this.numPrintInterval = new System.Windows.Forms.NumericUpDown();
        this.label61 = new System.Windows.Forms.Label();
        this.label30 = new System.Windows.Forms.Label();
        this.numLastTimeReceivedFrameLimit = new System.Windows.Forms.NumericUpDown();
        this.label54 = new System.Windows.Forms.Label();
        this.chkDisplaySuccessfullResultOnly = new System.Windows.Forms.CheckBox();
        this.cbxBackColor = new System.Windows.Forms.ComboBox();
        this.label51 = new System.Windows.Forms.Label();
        this.numNumberEventDisplay = new System.Windows.Forms.NumericUpDown();
        this.numMaxLane = new System.Windows.Forms.NumericUpDown();
        this.label33 = new System.Windows.Forms.Label();
        this.label32 = new System.Windows.Forms.Label();
        this.groupBox4 = new System.Windows.Forms.GroupBox();
        this.label28 = new System.Windows.Forms.Label();
        this.dtpStop = new System.Windows.Forms.DateTimePicker();
        this.dtpStart = new System.Windows.Forms.DateTimePicker();
        this.label7 = new System.Windows.Forms.Label();
        this.label2 = new System.Windows.Forms.Label();
        this.btnDeleteData = new System.Windows.Forms.Button();
        this.tabPageControl = new System.Windows.Forms.TabPage();
        this.groupBox6 = new System.Windows.Forms.GroupBox();
        this.chkEnableAUXControlRL = new System.Windows.Forms.CheckBox();
        this.chkEnableAUXControlVH2 = new System.Windows.Forms.CheckBox();
        this.chkEnableAUXControlPN = new System.Windows.Forms.CheckBox();
        this.chkEnabeAUXControlVH1 = new System.Windows.Forms.CheckBox();
        this.tabPage4 = new System.Windows.Forms.TabPage();
        this.groupBox1 = new System.Windows.Forms.GroupBox();
        this.txtDepartment = new System.Windows.Forms.TextBox();
        this.label60 = new System.Windows.Forms.Label();
        this.txtViolationDescription = new System.Windows.Forms.TextBox();
        this.label59 = new System.Windows.Forms.Label();
        this.label35 = new System.Windows.Forms.Label();
        this.txtProvinceName = new System.Windows.Forms.TextBox();
        this.txtLaneLocation = new System.Windows.Forms.TextBox();
        this.label34 = new System.Windows.Forms.Label();
        ((System.ComponentModel.ISupportInitialize)(this.numCaptureImageCount)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numCaptureNextImageTime)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numRecognizeIdleTime)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numMaxCharHeight)).BeginInit();
        this.groupBox3.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numGreenLightDelay)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numDifferenceFromRedColor)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numRedLightAnalyzeInterval)).BeginInit();
        this.groupBox2.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.picRedLight)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.picDoninantColor)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.picEquivalentColor)).BeginInit();
        this.grbBlackColor.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numRminBLACK)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numRmaxBLACK)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numBminBLACK)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numBmaxBLACK)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numGminBLACK)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numGmaxBLACK)).BeginInit();
        this.grbRedColor.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numRminRED)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numRmaxRED)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numBminRED)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numBmaxRED)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numGminRED)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numGmaxRED)).BeginInit();
        this.tabControl1.SuspendLayout();
        this.tabPage1.SuspendLayout();
        this.groupBox5.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numDelayTimeAfterRedLight)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numLaneAnalyzeInterval2)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numLaneAnalyzeInterval1)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numMinCharHeight)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numMotionAlarmLevelPanoramaCamera)).BeginInit();
        this.tabPage2.SuspendLayout();
        this.tabPage3.SuspendLayout();
        this.groupBox7.SuspendLayout();
        this.groupBox8.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numPrintInterval)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numLastTimeReceivedFrameLimit)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numNumberEventDisplay)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.numMaxLane)).BeginInit();
        this.groupBox4.SuspendLayout();
        this.tabPageControl.SuspendLayout();
        this.groupBox6.SuspendLayout();
        this.tabPage4.SuspendLayout();
        this.groupBox1.SuspendLayout();
        this.SuspendLayout();
        // 
        // btnOK
        // 
        resources.ApplyResources(this.btnOK, "btnOK");
        this.btnOK.Name = "btnOK";
        this.btnOK.UseVisualStyleBackColor = true;
        this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
        // 
        // btnCancel
        // 
        resources.ApplyResources(this.btnCancel, "btnCancel");
        this.btnCancel.Name = "btnCancel";
        this.btnCancel.UseVisualStyleBackColor = true;
        this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
        // 
        // label4
        // 
        resources.ApplyResources(this.label4, "label4");
        this.label4.ForeColor = System.Drawing.Color.Black;
        this.label4.Name = "label4";
        // 
        // numCaptureImageCount
        // 
        resources.ApplyResources(this.numCaptureImageCount, "numCaptureImageCount");
        this.numCaptureImageCount.ForeColor = System.Drawing.Color.Black;
        this.numCaptureImageCount.Name = "numCaptureImageCount";
        // 
        // label6
        // 
        resources.ApplyResources(this.label6, "label6");
        this.label6.ForeColor = System.Drawing.Color.Black;
        this.label6.Name = "label6";
        // 
        // numCaptureNextImageTime
        // 
        resources.ApplyResources(this.numCaptureNextImageTime, "numCaptureNextImageTime");
        this.numCaptureNextImageTime.ForeColor = System.Drawing.Color.Black;
        this.numCaptureNextImageTime.Name = "numCaptureNextImageTime";
        // 
        // label1
        // 
        resources.ApplyResources(this.label1, "label1");
        this.label1.ForeColor = System.Drawing.Color.Black;
        this.label1.Name = "label1";
        // 
        // txtImageFolder
        // 
        resources.ApplyResources(this.txtImageFolder, "txtImageFolder");
        this.txtImageFolder.Name = "txtImageFolder";
        // 
        // btnBrowse
        // 
        resources.ApplyResources(this.btnBrowse, "btnBrowse");
        this.btnBrowse.Name = "btnBrowse";
        this.btnBrowse.UseVisualStyleBackColor = true;
        this.btnBrowse.Click += new System.EventHandler(this.btnBrowse_Click);
        // 
        // label10
        // 
        resources.ApplyResources(this.label10, "label10");
        this.label10.ForeColor = System.Drawing.Color.Black;
        this.label10.Name = "label10";
        // 
        // numRecognizeIdleTime
        // 
        resources.ApplyResources(this.numRecognizeIdleTime, "numRecognizeIdleTime");
        this.numRecognizeIdleTime.ForeColor = System.Drawing.Color.Black;
        this.numRecognizeIdleTime.Name = "numRecognizeIdleTime";
        // 
        // label8
        // 
        resources.ApplyResources(this.label8, "label8");
        this.label8.ForeColor = System.Drawing.Color.Black;
        this.label8.Name = "label8";
        // 
        // numMaxCharHeight
        // 
        resources.ApplyResources(this.numMaxCharHeight, "numMaxCharHeight");
        this.numMaxCharHeight.ForeColor = System.Drawing.Color.Black;
        this.numMaxCharHeight.Maximum = new decimal(new int[] {
            120,
            0,
            0,
            0});
        this.numMaxCharHeight.Name = "numMaxCharHeight";
        // 
        // label9
        // 
        resources.ApplyResources(this.label9, "label9");
        this.label9.ForeColor = System.Drawing.Color.Black;
        this.label9.Name = "label9";
        // 
        // groupBox3
        // 
        this.groupBox3.Controls.Add(this.label58);
        this.groupBox3.Controls.Add(this.numGreenLightDelay);
        this.groupBox3.Controls.Add(this.label57);
        this.groupBox3.Controls.Add(this.label22);
        this.groupBox3.Controls.Add(this.numDifferenceFromRedColor);
        this.groupBox3.Controls.Add(this.label24);
        this.groupBox3.Controls.Add(this.label26);
        this.groupBox3.Controls.Add(this.cbxRedLightAnalyzeMode);
        this.groupBox3.Controls.Add(this.numRedLightAnalyzeInterval);
        this.groupBox3.Controls.Add(this.label25);
        this.groupBox3.Controls.Add(this.label50);
        this.groupBox3.Controls.Add(this.groupBox2);
        this.groupBox3.Controls.Add(this.grbBlackColor);
        this.groupBox3.Controls.Add(this.grbRedColor);
        this.groupBox3.Controls.Add(this.btnRedLightRegionDefine);
        resources.ApplyResources(this.groupBox3, "groupBox3");
        this.groupBox3.Name = "groupBox3";
        this.groupBox3.TabStop = false;
        // 
        // label58
        // 
        resources.ApplyResources(this.label58, "label58");
        this.label58.Name = "label58";
        // 
        // numGreenLightDelay
        // 
        resources.ApplyResources(this.numGreenLightDelay, "numGreenLightDelay");
        this.numGreenLightDelay.Name = "numGreenLightDelay";
        // 
        // label57
        // 
        resources.ApplyResources(this.label57, "label57");
        this.label57.Name = "label57";
        // 
        // label22
        // 
        resources.ApplyResources(this.label22, "label22");
        this.label22.Name = "label22";
        // 
        // numDifferenceFromRedColor
        // 
        resources.ApplyResources(this.numDifferenceFromRedColor, "numDifferenceFromRedColor");
        this.numDifferenceFromRedColor.Name = "numDifferenceFromRedColor";
        // 
        // label24
        // 
        resources.ApplyResources(this.label24, "label24");
        this.label24.Name = "label24";
        // 
        // label26
        // 
        resources.ApplyResources(this.label26, "label26");
        this.label26.Name = "label26";
        // 
        // cbxRedLightAnalyzeMode
        // 
        this.cbxRedLightAnalyzeMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        this.cbxRedLightAnalyzeMode.FormattingEnabled = true;
        this.cbxRedLightAnalyzeMode.Items.AddRange(new object[] {
            resources.GetString("cbxRedLightAnalyzeMode.Items"),
            resources.GetString("cbxRedLightAnalyzeMode.Items1")});
        resources.ApplyResources(this.cbxRedLightAnalyzeMode, "cbxRedLightAnalyzeMode");
        this.cbxRedLightAnalyzeMode.Name = "cbxRedLightAnalyzeMode";
        this.cbxRedLightAnalyzeMode.SelectedIndexChanged += new System.EventHandler(this.cbxRedLightAnalyzeMode_SelectedIndexChanged);
        // 
        // numRedLightAnalyzeInterval
        // 
        resources.ApplyResources(this.numRedLightAnalyzeInterval, "numRedLightAnalyzeInterval");
        this.numRedLightAnalyzeInterval.Maximum = new decimal(new int[] {
            5000,
            0,
            0,
            0});
        this.numRedLightAnalyzeInterval.Name = "numRedLightAnalyzeInterval";
        // 
        // label25
        // 
        resources.ApplyResources(this.label25, "label25");
        this.label25.Name = "label25";
        // 
        // label50
        // 
        resources.ApplyResources(this.label50, "label50");
        this.label50.Name = "label50";
        // 
        // groupBox2
        // 
        this.groupBox2.Controls.Add(this.label29);
        this.groupBox2.Controls.Add(this.lblRecognizeTime);
        this.groupBox2.Controls.Add(this.btnGetRedLightImage);
        this.groupBox2.Controls.Add(this.label5);
        this.groupBox2.Controls.Add(this.lblRGBInfo);
        this.groupBox2.Controls.Add(this.btnGetDominantColor);
        this.groupBox2.Controls.Add(this.label3);
        this.groupBox2.Controls.Add(this.picRedLight);
        this.groupBox2.Controls.Add(this.picDoninantColor);
        this.groupBox2.Controls.Add(this.lblRGB);
        this.groupBox2.Controls.Add(this.picEquivalentColor);
        resources.ApplyResources(this.groupBox2, "groupBox2");
        this.groupBox2.Name = "groupBox2";
        this.groupBox2.TabStop = false;
        // 
        // label29
        // 
        resources.ApplyResources(this.label29, "label29");
        this.label29.Name = "label29";
        // 
        // lblRecognizeTime
        // 
        resources.ApplyResources(this.lblRecognizeTime, "lblRecognizeTime");
        this.lblRecognizeTime.Name = "lblRecognizeTime";
        // 
        // btnGetRedLightImage
        // 
        resources.ApplyResources(this.btnGetRedLightImage, "btnGetRedLightImage");
        this.btnGetRedLightImage.Name = "btnGetRedLightImage";
        this.btnGetRedLightImage.UseVisualStyleBackColor = true;
        this.btnGetRedLightImage.Click += new System.EventHandler(this.btnGetRedLightImage_Click);
        // 
        // label5
        // 
        resources.ApplyResources(this.label5, "label5");
        this.label5.Name = "label5";
        // 
        // lblRGBInfo
        // 
        resources.ApplyResources(this.lblRGBInfo, "lblRGBInfo");
        this.lblRGBInfo.Name = "lblRGBInfo";
        // 
        // btnGetDominantColor
        // 
        resources.ApplyResources(this.btnGetDominantColor, "btnGetDominantColor");
        this.btnGetDominantColor.Name = "btnGetDominantColor";
        this.btnGetDominantColor.UseVisualStyleBackColor = true;
        this.btnGetDominantColor.Click += new System.EventHandler(this.btnGetDominantColor_Click);
        // 
        // label3
        // 
        resources.ApplyResources(this.label3, "label3");
        this.label3.Name = "label3";
        // 
        // picRedLight
        // 
        this.picRedLight.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
        resources.ApplyResources(this.picRedLight, "picRedLight");
        this.picRedLight.Name = "picRedLight";
        this.picRedLight.TabStop = false;
        this.picRedLight.MouseHover += new System.EventHandler(this.picRedLight_MouseHover);
        this.picRedLight.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picRedLight_MouseMove);
        // 
        // picDoninantColor
        // 
        this.picDoninantColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
        resources.ApplyResources(this.picDoninantColor, "picDoninantColor");
        this.picDoninantColor.Name = "picDoninantColor";
        this.picDoninantColor.TabStop = false;
        // 
        // lblRGB
        // 
        resources.ApplyResources(this.lblRGB, "lblRGB");
        this.lblRGB.Name = "lblRGB";
        // 
        // picEquivalentColor
        // 
        this.picEquivalentColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
        resources.ApplyResources(this.picEquivalentColor, "picEquivalentColor");
        this.picEquivalentColor.Name = "picEquivalentColor";
        this.picEquivalentColor.TabStop = false;
        // 
        // grbBlackColor
        // 
        this.grbBlackColor.Controls.Add(this.numRminBLACK);
        this.grbBlackColor.Controls.Add(this.label44);
        this.grbBlackColor.Controls.Add(this.numRmaxBLACK);
        this.grbBlackColor.Controls.Add(this.label45);
        this.grbBlackColor.Controls.Add(this.numBminBLACK);
        this.grbBlackColor.Controls.Add(this.numBmaxBLACK);
        this.grbBlackColor.Controls.Add(this.label46);
        this.grbBlackColor.Controls.Add(this.numGminBLACK);
        this.grbBlackColor.Controls.Add(this.numGmaxBLACK);
        this.grbBlackColor.Controls.Add(this.label47);
        this.grbBlackColor.Controls.Add(this.label48);
        this.grbBlackColor.Controls.Add(this.label49);
        resources.ApplyResources(this.grbBlackColor, "grbBlackColor");
        this.grbBlackColor.Name = "grbBlackColor";
        this.grbBlackColor.TabStop = false;
        // 
        // numRminBLACK
        // 
        resources.ApplyResources(this.numRminBLACK, "numRminBLACK");
        this.numRminBLACK.ForeColor = System.Drawing.Color.Red;
        this.numRminBLACK.Name = "numRminBLACK";
        // 
        // label44
        // 
        resources.ApplyResources(this.label44, "label44");
        this.label44.ForeColor = System.Drawing.Color.Red;
        this.label44.Name = "label44";
        // 
        // numRmaxBLACK
        // 
        resources.ApplyResources(this.numRmaxBLACK, "numRmaxBLACK");
        this.numRmaxBLACK.ForeColor = System.Drawing.Color.Red;
        this.numRmaxBLACK.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
        this.numRmaxBLACK.Name = "numRmaxBLACK";
        // 
        // label45
        // 
        resources.ApplyResources(this.label45, "label45");
        this.label45.ForeColor = System.Drawing.Color.Blue;
        this.label45.Name = "label45";
        // 
        // numBminBLACK
        // 
        resources.ApplyResources(this.numBminBLACK, "numBminBLACK");
        this.numBminBLACK.ForeColor = System.Drawing.Color.Blue;
        this.numBminBLACK.Name = "numBminBLACK";
        // 
        // numBmaxBLACK
        // 
        resources.ApplyResources(this.numBmaxBLACK, "numBmaxBLACK");
        this.numBmaxBLACK.ForeColor = System.Drawing.Color.Blue;
        this.numBmaxBLACK.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
        this.numBmaxBLACK.Name = "numBmaxBLACK";
        // 
        // label46
        // 
        resources.ApplyResources(this.label46, "label46");
        this.label46.ForeColor = System.Drawing.Color.Green;
        this.label46.Name = "label46";
        // 
        // numGminBLACK
        // 
        resources.ApplyResources(this.numGminBLACK, "numGminBLACK");
        this.numGminBLACK.ForeColor = System.Drawing.Color.Green;
        this.numGminBLACK.Name = "numGminBLACK";
        // 
        // numGmaxBLACK
        // 
        resources.ApplyResources(this.numGmaxBLACK, "numGmaxBLACK");
        this.numGmaxBLACK.ForeColor = System.Drawing.Color.Green;
        this.numGmaxBLACK.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
        this.numGmaxBLACK.Name = "numGmaxBLACK";
        // 
        // label47
        // 
        resources.ApplyResources(this.label47, "label47");
        this.label47.ForeColor = System.Drawing.Color.Red;
        this.label47.Name = "label47";
        // 
        // label48
        // 
        resources.ApplyResources(this.label48, "label48");
        this.label48.ForeColor = System.Drawing.Color.Blue;
        this.label48.Name = "label48";
        // 
        // label49
        // 
        resources.ApplyResources(this.label49, "label49");
        this.label49.ForeColor = System.Drawing.Color.Green;
        this.label49.Name = "label49";
        // 
        // grbRedColor
        // 
        this.grbRedColor.Controls.Add(this.numRminRED);
        this.grbRedColor.Controls.Add(this.label11);
        this.grbRedColor.Controls.Add(this.numRmaxRED);
        this.grbRedColor.Controls.Add(this.label12);
        this.grbRedColor.Controls.Add(this.numBminRED);
        this.grbRedColor.Controls.Add(this.numBmaxRED);
        this.grbRedColor.Controls.Add(this.label13);
        this.grbRedColor.Controls.Add(this.numGminRED);
        this.grbRedColor.Controls.Add(this.numGmaxRED);
        this.grbRedColor.Controls.Add(this.label17);
        this.grbRedColor.Controls.Add(this.label16);
        this.grbRedColor.Controls.Add(this.label15);
        resources.ApplyResources(this.grbRedColor, "grbRedColor");
        this.grbRedColor.Name = "grbRedColor";
        this.grbRedColor.TabStop = false;
        // 
        // numRminRED
        // 
        resources.ApplyResources(this.numRminRED, "numRminRED");
        this.numRminRED.ForeColor = System.Drawing.Color.Red;
        this.numRminRED.Maximum = new decimal(new int[] {
            150,
            0,
            0,
            0});
        this.numRminRED.Name = "numRminRED";
        // 
        // label11
        // 
        resources.ApplyResources(this.label11, "label11");
        this.label11.ForeColor = System.Drawing.Color.Red;
        this.label11.Name = "label11";
        // 
        // numRmaxRED
        // 
        resources.ApplyResources(this.numRmaxRED, "numRmaxRED");
        this.numRmaxRED.ForeColor = System.Drawing.Color.Red;
        this.numRmaxRED.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
        this.numRmaxRED.Minimum = new decimal(new int[] {
            150,
            0,
            0,
            0});
        this.numRmaxRED.Name = "numRmaxRED";
        this.numRmaxRED.Value = new decimal(new int[] {
            150,
            0,
            0,
            0});
        // 
        // label12
        // 
        resources.ApplyResources(this.label12, "label12");
        this.label12.ForeColor = System.Drawing.Color.Blue;
        this.label12.Name = "label12";
        // 
        // numBminRED
        // 
        resources.ApplyResources(this.numBminRED, "numBminRED");
        this.numBminRED.ForeColor = System.Drawing.Color.Blue;
        this.numBminRED.Name = "numBminRED";
        // 
        // numBmaxRED
        // 
        resources.ApplyResources(this.numBmaxRED, "numBmaxRED");
        this.numBmaxRED.ForeColor = System.Drawing.Color.Blue;
        this.numBmaxRED.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
        this.numBmaxRED.Name = "numBmaxRED";
        // 
        // label13
        // 
        resources.ApplyResources(this.label13, "label13");
        this.label13.ForeColor = System.Drawing.Color.Green;
        this.label13.Name = "label13";
        // 
        // numGminRED
        // 
        resources.ApplyResources(this.numGminRED, "numGminRED");
        this.numGminRED.ForeColor = System.Drawing.Color.Green;
        this.numGminRED.Name = "numGminRED";
        // 
        // numGmaxRED
        // 
        resources.ApplyResources(this.numGmaxRED, "numGmaxRED");
        this.numGmaxRED.ForeColor = System.Drawing.Color.Green;
        this.numGmaxRED.Maximum = new decimal(new int[] {
            255,
            0,
            0,
            0});
        this.numGmaxRED.Name = "numGmaxRED";
        // 
        // label17
        // 
        resources.ApplyResources(this.label17, "label17");
        this.label17.ForeColor = System.Drawing.Color.Red;
        this.label17.Name = "label17";
        // 
        // label16
        // 
        resources.ApplyResources(this.label16, "label16");
        this.label16.ForeColor = System.Drawing.Color.Blue;
        this.label16.Name = "label16";
        // 
        // label15
        // 
        resources.ApplyResources(this.label15, "label15");
        this.label15.ForeColor = System.Drawing.Color.Green;
        this.label15.Name = "label15";
        // 
        // btnRedLightRegionDefine
        // 
        resources.ApplyResources(this.btnRedLightRegionDefine, "btnRedLightRegionDefine");
        this.btnRedLightRegionDefine.Name = "btnRedLightRegionDefine";
        this.btnRedLightRegionDefine.UseVisualStyleBackColor = true;
        this.btnRedLightRegionDefine.Click += new System.EventHandler(this.btnRedLightRegionDefine_Click);
        // 
        // label14
        // 
        resources.ApplyResources(this.label14, "label14");
        this.label14.ForeColor = System.Drawing.Color.Black;
        this.label14.Name = "label14";
        // 
        // tabControl1
        // 
        this.tabControl1.Controls.Add(this.tabPage1);
        this.tabControl1.Controls.Add(this.tabPage2);
        this.tabControl1.Controls.Add(this.tabPage3);
        this.tabControl1.Controls.Add(this.tabPageControl);
        this.tabControl1.Controls.Add(this.tabPage4);
        resources.ApplyResources(this.tabControl1, "tabControl1");
        this.tabControl1.Name = "tabControl1";
        this.tabControl1.SelectedIndex = 0;
        // 
        // tabPage1
        // 
        this.tabPage1.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
        this.tabPage1.Controls.Add(this.groupBox5);
        this.tabPage1.Controls.Add(this.btnBrowse);
        this.tabPage1.Controls.Add(this.txtImageFolder);
        this.tabPage1.Controls.Add(this.label1);
        resources.ApplyResources(this.tabPage1, "tabPage1");
        this.tabPage1.Name = "tabPage1";
        // 
        // groupBox5
        // 
        this.groupBox5.Controls.Add(this.label55);
        this.groupBox5.Controls.Add(this.numDelayTimeAfterRedLight);
        this.groupBox5.Controls.Add(this.label56);
        this.groupBox5.Controls.Add(this.label21);
        this.groupBox5.Controls.Add(this.label18);
        this.groupBox5.Controls.Add(this.numLaneAnalyzeInterval2);
        this.groupBox5.Controls.Add(this.label31);
        this.groupBox5.Controls.Add(this.numLaneAnalyzeInterval1);
        this.groupBox5.Controls.Add(this.label27);
        this.groupBox5.Controls.Add(this.label52);
        this.groupBox5.Controls.Add(this.numMinCharHeight);
        this.groupBox5.Controls.Add(this.label20);
        this.groupBox5.Controls.Add(this.label53);
        this.groupBox5.Controls.Add(this.numMotionAlarmLevelPanoramaCamera);
        this.groupBox5.Controls.Add(this.label23);
        this.groupBox5.Controls.Add(this.label19);
        this.groupBox5.Controls.Add(this.label4);
        this.groupBox5.Controls.Add(this.label10);
        this.groupBox5.Controls.Add(this.label8);
        this.groupBox5.Controls.Add(this.numRecognizeIdleTime);
        this.groupBox5.Controls.Add(this.label14);
        this.groupBox5.Controls.Add(this.numCaptureImageCount);
        this.groupBox5.Controls.Add(this.label6);
        this.groupBox5.Controls.Add(this.label9);
        this.groupBox5.Controls.Add(this.numMaxCharHeight);
        this.groupBox5.Controls.Add(this.numCaptureNextImageTime);
        resources.ApplyResources(this.groupBox5, "groupBox5");
        this.groupBox5.ForeColor = System.Drawing.Color.DarkViolet;
        this.groupBox5.Name = "groupBox5";
        this.groupBox5.TabStop = false;
        // 
        // label55
        // 
        resources.ApplyResources(this.label55, "label55");
        this.label55.ForeColor = System.Drawing.Color.Black;
        this.label55.Name = "label55";
        // 
        // numDelayTimeAfterRedLight
        // 
        resources.ApplyResources(this.numDelayTimeAfterRedLight, "numDelayTimeAfterRedLight");
        this.numDelayTimeAfterRedLight.ForeColor = System.Drawing.Color.Black;
        this.numDelayTimeAfterRedLight.Maximum = new decimal(new int[] {
            10000,
            0,
            0,
            0});
        this.numDelayTimeAfterRedLight.Name = "numDelayTimeAfterRedLight";
        // 
        // label56
        // 
        resources.ApplyResources(this.label56, "label56");
        this.label56.ForeColor = System.Drawing.Color.Black;
        this.label56.Name = "label56";
        // 
        // label21
        // 
        resources.ApplyResources(this.label21, "label21");
        this.label21.ForeColor = System.Drawing.Color.Black;
        this.label21.Name = "label21";
        // 
        // label18
        // 
        resources.ApplyResources(this.label18, "label18");
        this.label18.ForeColor = System.Drawing.Color.Black;
        this.label18.Name = "label18";
        // 
        // numLaneAnalyzeInterval2
        // 
        resources.ApplyResources(this.numLaneAnalyzeInterval2, "numLaneAnalyzeInterval2");
        this.numLaneAnalyzeInterval2.ForeColor = System.Drawing.Color.Black;
        this.numLaneAnalyzeInterval2.Name = "numLaneAnalyzeInterval2";
        // 
        // label31
        // 
        resources.ApplyResources(this.label31, "label31");
        this.label31.ForeColor = System.Drawing.Color.Black;
        this.label31.Name = "label31";
        // 
        // numLaneAnalyzeInterval1
        // 
        resources.ApplyResources(this.numLaneAnalyzeInterval1, "numLaneAnalyzeInterval1");
        this.numLaneAnalyzeInterval1.ForeColor = System.Drawing.Color.Black;
        this.numLaneAnalyzeInterval1.Name = "numLaneAnalyzeInterval1";
        // 
        // label27
        // 
        resources.ApplyResources(this.label27, "label27");
        this.label27.ForeColor = System.Drawing.Color.Black;
        this.label27.Name = "label27";
        // 
        // label52
        // 
        resources.ApplyResources(this.label52, "label52");
        this.label52.ForeColor = System.Drawing.Color.Black;
        this.label52.Name = "label52";
        // 
        // numMinCharHeight
        // 
        resources.ApplyResources(this.numMinCharHeight, "numMinCharHeight");
        this.numMinCharHeight.ForeColor = System.Drawing.Color.Black;
        this.numMinCharHeight.Name = "numMinCharHeight";
        // 
        // label20
        // 
        resources.ApplyResources(this.label20, "label20");
        this.label20.ForeColor = System.Drawing.Color.Black;
        this.label20.Name = "label20";
        // 
        // label53
        // 
        resources.ApplyResources(this.label53, "label53");
        this.label53.ForeColor = System.Drawing.Color.Black;
        this.label53.Name = "label53";
        // 
        // numMotionAlarmLevelPanoramaCamera
        // 
        resources.ApplyResources(this.numMotionAlarmLevelPanoramaCamera, "numMotionAlarmLevelPanoramaCamera");
        this.numMotionAlarmLevelPanoramaCamera.ForeColor = System.Drawing.Color.Black;
        this.numMotionAlarmLevelPanoramaCamera.Maximum = new decimal(new int[] {
            120,
            0,
            0,
            0});
        this.numMotionAlarmLevelPanoramaCamera.Name = "numMotionAlarmLevelPanoramaCamera";
        // 
        // label23
        // 
        resources.ApplyResources(this.label23, "label23");
        this.label23.ForeColor = System.Drawing.Color.Black;
        this.label23.Name = "label23";
        // 
        // label19
        // 
        resources.ApplyResources(this.label19, "label19");
        this.label19.ForeColor = System.Drawing.Color.Black;
        this.label19.Name = "label19";
        // 
        // tabPage2
        // 
        this.tabPage2.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
        this.tabPage2.Controls.Add(this.groupBox3);
        resources.ApplyResources(this.tabPage2, "tabPage2");
        this.tabPage2.Name = "tabPage2";
        // 
        // tabPage3
        // 
        this.tabPage3.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
        this.tabPage3.Controls.Add(this.groupBox7);
        this.tabPage3.Controls.Add(this.groupBox8);
        this.tabPage3.Controls.Add(this.groupBox4);
        resources.ApplyResources(this.tabPage3, "tabPage3");
        this.tabPage3.Name = "tabPage3";
        // 
        // groupBox7
        // 
        this.groupBox7.Controls.Add(this.dtpTimeStopRedLight);
        this.groupBox7.Controls.Add(this.label64);
        this.groupBox7.Controls.Add(this.dtpTimeStartRedLight);
        this.groupBox7.Controls.Add(this.label63);
        resources.ApplyResources(this.groupBox7, "groupBox7");
        this.groupBox7.Name = "groupBox7";
        this.groupBox7.TabStop = false;
        // 
        // dtpTimeStopRedLight
        // 
        resources.ApplyResources(this.dtpTimeStopRedLight, "dtpTimeStopRedLight");
        this.dtpTimeStopRedLight.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
        this.dtpTimeStopRedLight.Name = "dtpTimeStopRedLight";
        this.dtpTimeStopRedLight.ShowUpDown = true;
        // 
        // label64
        // 
        resources.ApplyResources(this.label64, "label64");
        this.label64.Name = "label64";
        // 
        // dtpTimeStartRedLight
        // 
        resources.ApplyResources(this.dtpTimeStartRedLight, "dtpTimeStartRedLight");
        this.dtpTimeStartRedLight.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
        this.dtpTimeStartRedLight.Name = "dtpTimeStartRedLight";
        this.dtpTimeStartRedLight.ShowUpDown = true;
        // 
        // label63
        // 
        resources.ApplyResources(this.label63, "label63");
        this.label63.Name = "label63";
        // 
        // groupBox8
        // 
        this.groupBox8.Controls.Add(this.label62);
        this.groupBox8.Controls.Add(this.numPrintInterval);
        this.groupBox8.Controls.Add(this.label61);
        this.groupBox8.Controls.Add(this.label30);
        this.groupBox8.Controls.Add(this.numLastTimeReceivedFrameLimit);
        this.groupBox8.Controls.Add(this.label54);
        this.groupBox8.Controls.Add(this.chkDisplaySuccessfullResultOnly);
        this.groupBox8.Controls.Add(this.cbxBackColor);
        this.groupBox8.Controls.Add(this.label51);
        this.groupBox8.Controls.Add(this.numNumberEventDisplay);
        this.groupBox8.Controls.Add(this.numMaxLane);
        this.groupBox8.Controls.Add(this.label33);
        this.groupBox8.Controls.Add(this.label32);
        resources.ApplyResources(this.groupBox8, "groupBox8");
        this.groupBox8.Name = "groupBox8";
        this.groupBox8.TabStop = false;
        // 
        // label62
        // 
        resources.ApplyResources(this.label62, "label62");
        this.label62.Name = "label62";
        // 
        // numPrintInterval
        // 
        resources.ApplyResources(this.numPrintInterval, "numPrintInterval");
        this.numPrintInterval.Name = "numPrintInterval";
        // 
        // label61
        // 
        resources.ApplyResources(this.label61, "label61");
        this.label61.Name = "label61";
        // 
        // label30
        // 
        resources.ApplyResources(this.label30, "label30");
        this.label30.Name = "label30";
        // 
        // numLastTimeReceivedFrameLimit
        // 
        resources.ApplyResources(this.numLastTimeReceivedFrameLimit, "numLastTimeReceivedFrameLimit");
        this.numLastTimeReceivedFrameLimit.Name = "numLastTimeReceivedFrameLimit";
        // 
        // label54
        // 
        resources.ApplyResources(this.label54, "label54");
        this.label54.Name = "label54";
        // 
        // chkDisplaySuccessfullResultOnly
        // 
        resources.ApplyResources(this.chkDisplaySuccessfullResultOnly, "chkDisplaySuccessfullResultOnly");
        this.chkDisplaySuccessfullResultOnly.Name = "chkDisplaySuccessfullResultOnly";
        this.chkDisplaySuccessfullResultOnly.UseVisualStyleBackColor = true;
        // 
        // cbxBackColor
        // 
        this.cbxBackColor.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
        this.cbxBackColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        resources.ApplyResources(this.cbxBackColor, "cbxBackColor");
        this.cbxBackColor.FormattingEnabled = true;
        this.cbxBackColor.Name = "cbxBackColor";
        this.cbxBackColor.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.cbxBackColor_DrawItem);
        // 
        // label51
        // 
        resources.ApplyResources(this.label51, "label51");
        this.label51.Name = "label51";
        // 
        // numNumberEventDisplay
        // 
        resources.ApplyResources(this.numNumberEventDisplay, "numNumberEventDisplay");
        this.numNumberEventDisplay.Name = "numNumberEventDisplay";
        // 
        // numMaxLane
        // 
        resources.ApplyResources(this.numMaxLane, "numMaxLane");
        this.numMaxLane.Name = "numMaxLane";
        // 
        // label33
        // 
        resources.ApplyResources(this.label33, "label33");
        this.label33.Name = "label33";
        // 
        // label32
        // 
        resources.ApplyResources(this.label32, "label32");
        this.label32.Name = "label32";
        // 
        // groupBox4
        // 
        this.groupBox4.Controls.Add(this.label28);
        this.groupBox4.Controls.Add(this.dtpStop);
        this.groupBox4.Controls.Add(this.dtpStart);
        this.groupBox4.Controls.Add(this.label7);
        this.groupBox4.Controls.Add(this.label2);
        this.groupBox4.Controls.Add(this.btnDeleteData);
        resources.ApplyResources(this.groupBox4, "groupBox4");
        this.groupBox4.Name = "groupBox4";
        this.groupBox4.TabStop = false;
        // 
        // label28
        // 
        resources.ApplyResources(this.label28, "label28");
        this.label28.Name = "label28";
        // 
        // dtpStop
        // 
        resources.ApplyResources(this.dtpStop, "dtpStop");
        this.dtpStop.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
        this.dtpStop.Name = "dtpStop";
        // 
        // dtpStart
        // 
        resources.ApplyResources(this.dtpStart, "dtpStart");
        this.dtpStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
        this.dtpStart.Name = "dtpStart";
        // 
        // label7
        // 
        resources.ApplyResources(this.label7, "label7");
        this.label7.Name = "label7";
        // 
        // label2
        // 
        resources.ApplyResources(this.label2, "label2");
        this.label2.Name = "label2";
        // 
        // btnDeleteData
        // 
        resources.ApplyResources(this.btnDeleteData, "btnDeleteData");
        this.btnDeleteData.Name = "btnDeleteData";
        this.btnDeleteData.UseVisualStyleBackColor = true;
        this.btnDeleteData.Click += new System.EventHandler(this.btnDeleteData_Click);
        // 
        // tabPageControl
        // 
        this.tabPageControl.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
        this.tabPageControl.Controls.Add(this.groupBox6);
        resources.ApplyResources(this.tabPageControl, "tabPageControl");
        this.tabPageControl.Name = "tabPageControl";
        // 
        // groupBox6
        // 
        this.groupBox6.Controls.Add(this.chkEnableAUXControlRL);
        this.groupBox6.Controls.Add(this.chkEnableAUXControlVH2);
        this.groupBox6.Controls.Add(this.chkEnableAUXControlPN);
        this.groupBox6.Controls.Add(this.chkEnabeAUXControlVH1);
        resources.ApplyResources(this.groupBox6, "groupBox6");
        this.groupBox6.Name = "groupBox6";
        this.groupBox6.TabStop = false;
        // 
        // chkEnableAUXControlRL
        // 
        resources.ApplyResources(this.chkEnableAUXControlRL, "chkEnableAUXControlRL");
        this.chkEnableAUXControlRL.Name = "chkEnableAUXControlRL";
        this.chkEnableAUXControlRL.UseVisualStyleBackColor = true;
        // 
        // chkEnableAUXControlVH2
        // 
        resources.ApplyResources(this.chkEnableAUXControlVH2, "chkEnableAUXControlVH2");
        this.chkEnableAUXControlVH2.Name = "chkEnableAUXControlVH2";
        this.chkEnableAUXControlVH2.UseVisualStyleBackColor = true;
        // 
        // chkEnableAUXControlPN
        // 
        resources.ApplyResources(this.chkEnableAUXControlPN, "chkEnableAUXControlPN");
        this.chkEnableAUXControlPN.Name = "chkEnableAUXControlPN";
        this.chkEnableAUXControlPN.UseVisualStyleBackColor = true;
        // 
        // chkEnabeAUXControlVH1
        // 
        resources.ApplyResources(this.chkEnabeAUXControlVH1, "chkEnabeAUXControlVH1");
        this.chkEnabeAUXControlVH1.Name = "chkEnabeAUXControlVH1";
        this.chkEnabeAUXControlVH1.UseVisualStyleBackColor = true;
        // 
        // tabPage4
        // 
        this.tabPage4.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
        this.tabPage4.Controls.Add(this.groupBox1);
        resources.ApplyResources(this.tabPage4, "tabPage4");
        this.tabPage4.Name = "tabPage4";
        // 
        // groupBox1
        // 
        this.groupBox1.Controls.Add(this.txtDepartment);
        this.groupBox1.Controls.Add(this.label60);
        this.groupBox1.Controls.Add(this.txtViolationDescription);
        this.groupBox1.Controls.Add(this.label59);
        this.groupBox1.Controls.Add(this.label35);
        this.groupBox1.Controls.Add(this.txtProvinceName);
        this.groupBox1.Controls.Add(this.txtLaneLocation);
        this.groupBox1.Controls.Add(this.label34);
        resources.ApplyResources(this.groupBox1, "groupBox1");
        this.groupBox1.Name = "groupBox1";
        this.groupBox1.TabStop = false;
        // 
        // txtDepartment
        // 
        resources.ApplyResources(this.txtDepartment, "txtDepartment");
        this.txtDepartment.Name = "txtDepartment";
        // 
        // label60
        // 
        resources.ApplyResources(this.label60, "label60");
        this.label60.Name = "label60";
        // 
        // txtViolationDescription
        // 
        resources.ApplyResources(this.txtViolationDescription, "txtViolationDescription");
        this.txtViolationDescription.Name = "txtViolationDescription";
        // 
        // label59
        // 
        resources.ApplyResources(this.label59, "label59");
        this.label59.Name = "label59";
        // 
        // label35
        // 
        resources.ApplyResources(this.label35, "label35");
        this.label35.Name = "label35";
        // 
        // txtProvinceName
        // 
        resources.ApplyResources(this.txtProvinceName, "txtProvinceName");
        this.txtProvinceName.Name = "txtProvinceName";
        // 
        // txtLaneLocation
        // 
        resources.ApplyResources(this.txtLaneLocation, "txtLaneLocation");
        this.txtLaneLocation.Name = "txtLaneLocation";
        // 
        // label34
        // 
        resources.ApplyResources(this.label34, "label34");
        this.label34.Name = "label34";
        // 
        // frmOption
        // 
        this.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
        resources.ApplyResources(this, "$this");
        this.Controls.Add(this.tabControl1);
        this.Controls.Add(this.btnOK);
        this.Controls.Add(this.btnCancel);
        this.MaximizeBox = false;
        this.MinimizeBox = false;
        this.Name = "frmOption";
        this.Load += new System.EventHandler(this.frmOption_Load);
        ((System.ComponentModel.ISupportInitialize)(this.numCaptureImageCount)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numCaptureNextImageTime)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numRecognizeIdleTime)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numMaxCharHeight)).EndInit();
        this.groupBox3.ResumeLayout(false);
        this.groupBox3.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numGreenLightDelay)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numDifferenceFromRedColor)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numRedLightAnalyzeInterval)).EndInit();
        this.groupBox2.ResumeLayout(false);
        this.groupBox2.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.picRedLight)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.picDoninantColor)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.picEquivalentColor)).EndInit();
        this.grbBlackColor.ResumeLayout(false);
        this.grbBlackColor.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numRminBLACK)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numRmaxBLACK)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numBminBLACK)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numBmaxBLACK)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numGminBLACK)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numGmaxBLACK)).EndInit();
        this.grbRedColor.ResumeLayout(false);
        this.grbRedColor.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numRminRED)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numRmaxRED)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numBminRED)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numBmaxRED)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numGminRED)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numGmaxRED)).EndInit();
        this.tabControl1.ResumeLayout(false);
        this.tabPage1.ResumeLayout(false);
        this.tabPage1.PerformLayout();
        this.groupBox5.ResumeLayout(false);
        this.groupBox5.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numDelayTimeAfterRedLight)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numLaneAnalyzeInterval2)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numLaneAnalyzeInterval1)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numMinCharHeight)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numMotionAlarmLevelPanoramaCamera)).EndInit();
        this.tabPage2.ResumeLayout(false);
        this.tabPage3.ResumeLayout(false);
        this.groupBox7.ResumeLayout(false);
        this.groupBox7.PerformLayout();
        this.groupBox8.ResumeLayout(false);
        this.groupBox8.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.numPrintInterval)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numLastTimeReceivedFrameLimit)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numNumberEventDisplay)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.numMaxLane)).EndInit();
        this.groupBox4.ResumeLayout(false);
        this.groupBox4.PerformLayout();
        this.tabPageControl.ResumeLayout(false);
        this.groupBox6.ResumeLayout(false);
        this.groupBox6.PerformLayout();
        this.tabPage4.ResumeLayout(false);
        this.groupBox1.ResumeLayout(false);
        this.groupBox1.PerformLayout();
        this.ResumeLayout(false);

	}
	private void frmOption_Load(object sender, System.EventArgs e)
	{
		this.dtpStart.Value = System.DateTime.Now.AddDays(-7.0);
		this.dtpStop.Value = System.DateTime.Now.AddDays(-7.0);
		this.numMotionAlarmLevelPanoramaCamera.Value = MainForm.SystemConfiguration_0.ViewCamera.MotionAlarmLevel;
		this.numCaptureImageCount.Value = MainForm.SystemConfiguration_0.int_10;
		this.numCaptureNextImageTime.Value = MainForm.SystemConfiguration_0.int_9;
		this.numMinCharHeight.Value = MainForm.SystemConfiguration_0.int_13;
		this.numMaxCharHeight.Value = MainForm.SystemConfiguration_0.int_14;
		this.numRecognizeIdleTime.Value = MainForm.SystemConfiguration_0.int_12;
		this.chkDisplaySuccessfullResultOnly.Checked = MainForm.SystemConfiguration_0.bool_2;
		this.txtImageFolder.Text = MainForm.SystemConfiguration_0.m_ImgPath;
		this.numRminRED.Value = MainForm.SystemConfiguration_0.gclass3_0.int_1;
		this.numRmaxRED.Value = MainForm.SystemConfiguration_0.gclass3_0.int_0;
		this.numGminRED.Value = MainForm.SystemConfiguration_0.gclass3_0.int_3;
		this.numGmaxRED.Value = MainForm.SystemConfiguration_0.gclass3_0.int_2;
		this.numBminRED.Value = MainForm.SystemConfiguration_0.gclass3_0.int_5;
		this.numBmaxRED.Value = MainForm.SystemConfiguration_0.gclass3_0.int_4;
		this.numRminBLACK.Value = MainForm.SystemConfiguration_0.gclass3_3.int_1;
		this.numRmaxBLACK.Value = MainForm.SystemConfiguration_0.gclass3_3.int_0;
		this.numGminBLACK.Value = MainForm.SystemConfiguration_0.gclass3_3.int_3;
		this.numGmaxBLACK.Value = MainForm.SystemConfiguration_0.gclass3_3.int_2;
		this.numBminBLACK.Value = MainForm.SystemConfiguration_0.gclass3_3.int_5;
		this.numBmaxBLACK.Value = MainForm.SystemConfiguration_0.gclass3_3.int_4;
		this.dtpTimeStartRedLight.Value = MainForm.SystemConfiguration_0.dateTime_0;
		this.dtpTimeStopRedLight.Value = MainForm.SystemConfiguration_0.dateTime_1;
		this.cbxRedLightAnalyzeMode.SelectedIndex = MainForm.SystemConfiguration_0.int_2;
		this.numRedLightAnalyzeInterval.Value = MainForm.SystemConfiguration_0.int_4;
		this.numLaneAnalyzeInterval1.Value = MainForm.SystemConfiguration_0.int_0;
		this.numLaneAnalyzeInterval2.Value = MainForm.SystemConfiguration_0.int_1;
		this.numNumberEventDisplay.Value = MainForm.SystemConfiguration_0.int_15;
		this.numMaxLane.Value = MainForm.SystemConfiguration_0.int_16;
		this.numLastTimeReceivedFrameLimit.Value = MainForm.SystemConfiguration_0.int_21;
		this.txtLaneLocation.Text = MainForm.SystemConfiguration_0.string_11;
		this.txtProvinceName.Text = MainForm.SystemConfiguration_0.string_12;
		this.txtViolationDescription.Text = MainForm.SystemConfiguration_0.string_13;
		this.txtDepartment.Text = MainForm.SystemConfiguration_0.string_14;
		this.chkEnabeAUXControlVH1.Checked = MainForm.SystemConfiguration_0.camera_0.EnableAUXControl;
		this.chkEnableAUXControlVH2.Checked = MainForm.SystemConfiguration_0.ZoomCamera.EnableAUXControl;
		this.chkEnableAUXControlVH2.Enabled = (MainForm.SystemConfiguration_0.int_16 > 1);
		this.chkEnableAUXControlPN.Checked = MainForm.SystemConfiguration_0.ViewCamera.EnableAUXControl;
		this.chkEnableAUXControlRL.Checked = MainForm.SystemConfiguration_0.RedLightCamera.EnableAUXControl;
		if (!MainForm.SystemConfiguration_0.bool_5)
		{
			this.tabControl1.TabPages.Remove(this.tabPageControl);
		}
		this.cbxBackColor.Text = MainForm.SystemConfiguration_0.string_15;
		this.numDifferenceFromRedColor.Value = MainForm.SystemConfiguration_0.int_3;
		this.numDelayTimeAfterRedLight.Value = MainForm.SystemConfiguration_0.int_8;
		this.numGreenLightDelay.Value = MainForm.SystemConfiguration_0.int_7;
		this.numPrintInterval.Value = MainForm.SystemConfiguration_0.int_17;
		this.numLaneAnalyzeInterval2.Enabled = (MainForm.SystemConfiguration_0.int_16 > 1);
		this.numMinCharHeight.Enabled = (MainForm.SystemConfiguration_0.int_11 == 1);
		if (!this.numMinCharHeight.Enabled)
		{
			this.numMinCharHeight.Value = 20m;
		}
	}
	private void btnCancel_Click(object sender, System.EventArgs e)
	{
		base.Close();
	}
	private void btnOK_Click(object sender, System.EventArgs e)
	{
		MainForm.SystemConfiguration_0.ViewCamera.MotionAlarmLevel = (int)this.numMotionAlarmLevelPanoramaCamera.Value;
		MainForm.SystemConfiguration_0.int_10 = (int)this.numCaptureImageCount.Value;
		MainForm.SystemConfiguration_0.int_9 = (int)this.numCaptureNextImageTime.Value;
		MainForm.SystemConfiguration_0.int_13 = (int)this.numMinCharHeight.Value;
		MainForm.SystemConfiguration_0.int_14 = (int)this.numMaxCharHeight.Value;
		MainForm.SystemConfiguration_0.int_12 = (int)this.numRecognizeIdleTime.Value;
		MainForm.SystemConfiguration_0.bool_2 = this.chkDisplaySuccessfullResultOnly.Checked;
		MainForm.SystemConfiguration_0.m_ImgPath = this.txtImageFolder.Text;
		MainForm.SystemConfiguration_0.gclass3_0.int_1 = (int)this.numRminRED.Value;
		MainForm.SystemConfiguration_0.gclass3_0.int_0 = (int)this.numRmaxRED.Value;
		MainForm.SystemConfiguration_0.gclass3_0.int_3 = (int)this.numGminRED.Value;
		MainForm.SystemConfiguration_0.gclass3_0.int_2 = (int)this.numGmaxRED.Value;
		MainForm.SystemConfiguration_0.gclass3_0.int_5 = (int)this.numBminRED.Value;
		MainForm.SystemConfiguration_0.gclass3_0.int_4 = (int)this.numBmaxRED.Value;
		MainForm.SystemConfiguration_0.gclass3_3.int_1 = (int)this.numRminBLACK.Value;
		MainForm.SystemConfiguration_0.gclass3_3.int_0 = (int)this.numRmaxBLACK.Value;
		MainForm.SystemConfiguration_0.gclass3_3.int_3 = (int)this.numGminBLACK.Value;
		MainForm.SystemConfiguration_0.gclass3_3.int_2 = (int)this.numGmaxBLACK.Value;
		MainForm.SystemConfiguration_0.gclass3_3.int_5 = (int)this.numBminBLACK.Value;
		MainForm.SystemConfiguration_0.gclass3_3.int_4 = (int)this.numBmaxBLACK.Value;
		MainForm.SystemConfiguration_0.dateTime_0 = this.dtpTimeStartRedLight.Value;
		MainForm.SystemConfiguration_0.dateTime_1 = this.dtpTimeStopRedLight.Value;
		MainForm.SystemConfiguration_0.int_2 = this.cbxRedLightAnalyzeMode.SelectedIndex;
		MainForm.SystemConfiguration_0.int_4 = (int)this.numRedLightAnalyzeInterval.Value;
		MainForm.SystemConfiguration_0.int_0 = (int)this.numLaneAnalyzeInterval1.Value;
		MainForm.SystemConfiguration_0.int_1 = (int)this.numLaneAnalyzeInterval2.Value;
		MainForm.SystemConfiguration_0.int_15 = (int)this.numNumberEventDisplay.Value;
		MainForm.SystemConfiguration_0.int_16 = (int)this.numMaxLane.Value;
		MainForm.SystemConfiguration_0.int_21 = (int)this.numLastTimeReceivedFrameLimit.Value;
		MainForm.SystemConfiguration_0.string_11 = this.txtLaneLocation.Text;
		MainForm.SystemConfiguration_0.string_12 = this.txtProvinceName.Text;
		MainForm.SystemConfiguration_0.string_13 = this.txtViolationDescription.Text;
		MainForm.SystemConfiguration_0.string_14 = this.txtDepartment.Text;
		MainForm.SystemConfiguration_0.camera_0.EnableAUXControl = this.chkEnabeAUXControlVH1.Checked;
		MainForm.SystemConfiguration_0.ZoomCamera.EnableAUXControl = this.chkEnableAUXControlVH2.Checked;
		MainForm.SystemConfiguration_0.ViewCamera.EnableAUXControl = this.chkEnableAUXControlPN.Checked;
		MainForm.SystemConfiguration_0.RedLightCamera.EnableAUXControl = this.chkEnableAUXControlRL.Checked;
		MainForm.SystemConfiguration_0.string_15 = this.cbxBackColor.Text;
		MainForm.SystemConfiguration_0.int_3 = (int)this.numDifferenceFromRedColor.Value;
		MainForm.SystemConfiguration_0.int_8 = (int)this.numDelayTimeAfterRedLight.Value;
		MainForm.SystemConfiguration_0.int_7 = (int)this.numGreenLightDelay.Value;
		MainForm.SystemConfiguration_0.int_17 = (int)this.numPrintInterval.Value;
		MainForm.SystemConfiguration_0.method_8();
		MainForm.SystemConfiguration_0.method_6();
		this.ilog_0.Info("User: " + RegisterationInfo.gclass2_0.method_2() + " change setting of app.");
		System.Drawing.Color backColor = System.Drawing.Color.FromName(MainForm.SystemConfiguration_0.string_15);
		this.BackColor = backColor;
		foreach (TabPage tabPage in this.tabControl1.TabPages)
		{
			tabPage.BackColor = backColor;
		}
	}
	private void btnBrowse_Click(object sender, System.EventArgs e)
	{
		if (this.folderBrowserDialog_0.ShowDialog() == DialogResult.OK)
		{
			this.txtImageFolder.Text = this.folderBrowserDialog_0.SelectedPath;
		}
	}
	private void btnGetRedLightImage_Click(object sender, System.EventArgs e)
	{
		System.Drawing.Bitmap currentVideoFrame = MainForm.SystemConfiguration_0.RedLightCamera.GetCurrentVideoFrame();
		if (currentVideoFrame != null)
		{
			this.btnGetDominantColor.Enabled = true;
			try
			{
				System.Drawing.Bitmap image = new System.Drawing.Bitmap(MainForm.SystemConfiguration_0.rectangle_0.Width, MainForm.SystemConfiguration_0.rectangle_0.Height);
				System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(image);
				graphics.DrawImage(currentVideoFrame, 0, 0, MainForm.SystemConfiguration_0.rectangle_0, System.Drawing.GraphicsUnit.Pixel);
				graphics.Dispose();
				this.picRedLight.Image = image;
				return;
			}
			catch (System.Exception ex)
			{
				MessageBox.Show(ex.ToString());
				return;
			}
		}
		this.btnGetDominantColor.Enabled = false;
		this.picRedLight.Image = null;
	}
	private void btnGetDominantColor_Click(object sender, System.EventArgs e)
	{
		try
		{
			if (this.picRedLight.Image != null)
			{
				Stopwatch stopwatch = new Stopwatch();
				stopwatch.Start();
				using (System.Drawing.Bitmap bitmap = (System.Drawing.Bitmap)this.picRedLight.Image.Clone())
				{
					System.Drawing.Color color = MainForm.SystemConfiguration_0.method_30(bitmap);
					this.picDoninantColor.BackColor = color;
					this.picEquivalentColor.BackColor = MainForm.SystemConfiguration_0.method_35(color);
					this.lblRGB.Text = string.Concat(new object[]
					{
						"R=",
						color.R,
						"; G=",
						color.G,
						"; B=",
						color.B
					});
				}
				stopwatch.Stop();
				this.lblRecognizeTime.Text = stopwatch.ElapsedMilliseconds.ToString();
			}
			else
			{
				this.picDoninantColor.BackColor = System.Drawing.SystemColors.Control;
				this.picEquivalentColor.BackColor = System.Drawing.SystemColors.Control;
				this.lblRGB.Text = string.Empty;
			}
		}
		catch (System.Exception ex)
		{
			MessageBox.Show(ex.ToString());
		}
	}
	private void btnRedLightRegionDefine_Click(object sender, System.EventArgs e)
	{
		System.Drawing.Bitmap currentVideoFrame = MainForm.SystemConfiguration_0.RedLightCamera.GetCurrentVideoFrame();
		if (currentVideoFrame != null)
		{
			MotionRegionsForm motionRegionsForm = new MotionRegionsForm();
			motionRegionsForm.VideoFrame = currentVideoFrame;
			motionRegionsForm.MotionRectangles = new System.Drawing.Rectangle[]
			{
				MainForm.SystemConfiguration_0.rectangle_0
			};
			if (motionRegionsForm.ShowDialog(this) == DialogResult.OK)
			{
				System.Drawing.Rectangle[] motionRectangles = motionRegionsForm.MotionRectangles;
				if (motionRectangles.Length == 0)
				{
					MessageBox.Show("Bạn cần  phải định nghĩa vùng đèn đỏ", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
					return;
				}
				MainForm.SystemConfiguration_0.rectangle_0 = motionRectangles[0];
				if (motionRectangles.Length > 1)
				{
					MainForm.SystemConfiguration_0.rectangle_2 = motionRectangles[1];
				}
				if (motionRectangles.Length > 2)
				{
					MainForm.SystemConfiguration_0.rectangle_1 = motionRectangles[2];
				}
				MainForm.SystemConfiguration_0.method_6();
			}
		}
	}
	private void picRedLight_MouseHover(object sender, System.EventArgs e)
	{
	}
	private void picRedLight_MouseMove(object sender, MouseEventArgs e)
	{
		if (this.picRedLight.Image != null)
		{
			System.Drawing.Bitmap bitmap = (System.Drawing.Bitmap)this.picRedLight.Image;
			if (e.Location.X < bitmap.Width && e.Location.Y < bitmap.Height)
			{
				System.Drawing.Color pixel = bitmap.GetPixel(e.Location.X, e.Location.Y);
				this.lblRGBInfo.Text = string.Concat(new object[]
				{
					"R=",
					pixel.R,
					"; G=",
					pixel.G,
					"; B=",
					pixel.B
				});
			}
		}
	}
	private void btnDeleteData_Click(object sender, System.EventArgs e)
	{
		System.DateTime dateTime = System.Convert.ToDateTime(this.dtpStart.Value.ToString("yyyy/MM/dd") + " 00:00:00");
		System.DateTime dateTime2 = System.Convert.ToDateTime(this.dtpStop.Value.ToString("yyyy/MM/dd") + " 23:59:59");
		if (dateTime2 < System.DateTime.Now && dateTime2 > dateTime)
		{
			if (MessageBox.Show(string.Concat(new string[]
			{
				"Bạn có thực sự muốn xóa tất cả các dữ liệu từ ",
				dateTime.ToString("dd/MM/yyyy HH:mm:ss"),
				" đến ",
				dateTime2.ToString("dd/MM/yyyy HH:mm:ss"),
				" ?."
			}), "Xác nhận", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
			{
				MainForm.SystemConfiguration_0.method_17(dateTime, dateTime2);
				MainForm.SystemConfiguration_0.method_18(dateTime, dateTime2);
				this.ilog_0.Info(string.Concat(new string[]
				{
					"User: ",
					RegisterationInfo.gclass2_0.method_2(),
					" delete data from ",
					dateTime.ToString("dd/MM/yyyy HH:mm:ss"),
					" to ",
					dateTime2.ToString("dd/MM/yyyy HH:mm:ss")
				}));
				return;
			}
		}
		else
		{
			MessageBox.Show("Chọn khoảng thời gian không đúng");
		}
	}
	private void cbxRedLightAnalyzeMode_SelectedIndexChanged(object sender, System.EventArgs e)
	{
		if (this.cbxRedLightAnalyzeMode.SelectedIndex == 0)
		{
			this.grbRedColor.Enabled = true;
			this.grbBlackColor.Enabled = false;
			this.numDifferenceFromRedColor.Enabled = false;
			return;
		}
		this.grbRedColor.Enabled = false;
		this.grbBlackColor.Enabled = true;
		this.numDifferenceFromRedColor.Enabled = true;
	}
	private void method_0(object sender, System.EventArgs e)
	{
	}
	private void cbxBackColor_DrawItem(object sender, DrawItemEventArgs e)
	{
		if (e.Index < 0)
		{
			e.DrawBackground();
			e.DrawFocusRectangle();
			return;
		}
		System.Drawing.Color color = System.Drawing.Color.FromName(this.cbxBackColor.Items[e.Index].ToString());
		System.Drawing.Rectangle rect = new System.Drawing.Rectangle(2, e.Bounds.Top + 2, 20, e.Bounds.Height - 4);
		e.DrawBackground();
		e.DrawFocusRectangle();
		e.Graphics.FillRectangle(new System.Drawing.SolidBrush(color), rect);
		e.Graphics.DrawString(color.Name, this.cbxBackColor.Font, System.Drawing.Brushes.Black, 24f, (float)((e.Bounds.Height - this.cbxBackColor.Font.Height) / 2 + e.Bounds.Top));
	}
}
